<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
</head>
<body>
	<canvas id="canvas" width="500" height="500" style="border: 1px solid #000;"></canvas>

</body>
</html>

<script type="text/javascript">
	var canvas = document.getElementById('canvas');
	var context =canvas.getContext('2d');
	context.fillstyle = "#eeeeef";
	context.fillRect(0,0,500,500);

	context.translate(200,50);
	context.fillstyle = 'rgba(225,0,0,0.25)';

    for (var i = 0; i <= 50; i++) {
	
        context.translate(25,25);
	    context.scale(0.95,0.95);
	    context.rolate(Math.PI/10);
	    context.fillRect(0,0,100,50)
	
}
	   
</script>